<?php

$id = "445281198812251877";
// $id = "445281201012251877";


// 01 31  0 1-9  1 0-9 2 0-9 3 01

$preg = "/^[1-9]\d{5}(19\d{2}|20(0\d|1[0-8]))(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])\d{3}[0-9x]$/";

// $c = preg_match($preg,$id);

// var_dump($c);

$url = "https://baike.efd.baidu.com";

$preg = "/^http(s)?:\/\/([a-z0-9]{1,2}\.|[a-z0-9][0-9a-z-]{1,}[0-9a-z]\.){1,}[a-z]{2,}/";

// $c = preg_match($preg,$url);

// var_dump($c);
// 


$data = file_get_contents("https://www.lagou.com/");

$preg = "/data-salary=\"(.+?)\".+?data-company=\"(.+?)\".+?data-positionname=\"(.+?)\".+?data-companyid.+?salary fr\">.+?<\/span>.+?<\/div>.+?<div class=\"position_main_info wordCut\">.+?<span>(.+?)<\/span>.+?<span>(.+?)<\/span>.+?labels/s";

$c = preg_match_all($preg,$data,$out);

var_dump($c,$out);